// Copyright 2009 StarCite Inc.  All rights reserved.
// Test.java 4:59:12 PM danny.liu
package com.billowsoft.lab.algorithm.linkedlist;

/**
 * @author danny.liu Apr 24, 2012
 * @version 1.0
 * 
 */
public class Test {

	public static void main(String[] args) {
		Integer[] values = new Integer[] { 1, 2, 3, 4, 5, 8, 0 };
		LinkedList<Integer> intList = new LinkedList<Integer>(values);
		System.out.println("Original list:");
		for (Integer value : intList) {
			System.out.print(value + " -> ");
		}

		LinkedList<Integer> reversedList = intList.reverseList();
		System.out.println("\nReversed list:");
		for (Integer value : reversedList) {
			System.out.print(value + " -> ");
		}
		
		System.out.println(System.currentTimeMillis());
	}

}
